package com.ccit.course.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ccit.model.CourseOrder;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CourseOrderService extends IService<CourseOrder> {

    //保存修改订单
    Boolean saveOrder(CourseOrder order);

    //查询所有
    List<CourseOrder> findAllOrder();

    //条件查询
    List<CourseOrder> findOrderList(CourseOrder order);

    //模糊查询
    List<CourseOrder> findOrderLike(CourseOrder order);

    //根据手机号查询订单
    List<CourseOrder> findOrderByPhone(String phone);

    List<CourseOrder> listAllCourseOrder();

    Page<CourseOrder> getByPage(Integer current, Integer size);

    List<CourseOrder> getByPhone(IPage<CourseOrder> courseOrderIPage, String phone);
}
